<?php if (count($myforums)): ?>
	<h2>Reading List</h2>
	<div class="portletinfo"><ul>
		<?php foreach ($myforums as $i): ?>
			<?php if ($i['object_id'] == $object['object_id']): ?>
				<li><?php _e($i['title']) ?></li>
			<?php else: ?>
				<li><a href="<?php echo Gene::makeLink($i) ?>" title="<?php _e($i['description']) ?>"><?php _e($i['title']) ?></a></li>
			<?php endif; ?>
		<?php endforeach; ?>
	</ul></div>
<?php endif; ?>

<?php if (count($similar)): ?>
	<h2>See Also</h2>
	<div class="portletinfo"><ul>
	<?php foreach ($similar as $i): ?>
			<li><a href="<?php echo Gene::makeLink($i) ?>"><?php _e($i['title']) ?></a></li>
		<?php endforeach; ?>
	</ul></div>
<?php endif; ?>

<?php if (checkPermission($object, "moderate")): ?>
	<h2>Moderate</h2>
	
	<div class="portletinfo moderator">
	<form id="moderation" action="<?php echo Gene::makeLink($object) ?>/edit/moderate" method="post">
	<select name="moderation" id="moderatoract">
	
	<?php if ($extra['readonly']): ?>
		<option value="lock">Unlock Discussion</option>
	<?php else: ?>
		<option value="lock">Lock Discussion</option>
	<?php endif; ?>
	
	<?php if ($extra['priority'] > 1): ?>
		<option value="sticky">Remove Sticky</option>
	<?php else: ?>
		<option value="sticky">Make Sticky</option>
	<?php endif; ?>
	</select>
	<input type="submit" value="Go" />
	</form>
	
	<div id="modlinks" style="display:none;">
	
	<?php if ($extra['readonly']): ?>
		<p><a href="#" id="lock"><img src="<?php echo $ui['images'] ?>locked.gif" alt="" id="lockimage" /><br />Unlock Discussion</a></p>
	<?php else: ?>
		<p><a href="#" id="lock"><img src="<?php echo $ui['images'] ?>unlocked.gif" alt="" id="lockimage" /><br />Lock Discussion</a></p>
	<?php endif; ?>
	
	<?php if ($extra['priority'] > 1): ?>
		<p><a href="#" id="sticky"><img src="<?php echo $ui['images'] ?>sticky.gif" alt="" id="stickyimage" /><br />Remove Sticky</a></p>
	<?php else: ?>
		<p><a href="#" id="sticky"><img src="<?php echo $ui['images'] ?>unsticky.gif" alt="" id="stickyimage" /><br />Make Sticky</a></p>
	<?php endif; ?>
	
	<?php if (hasPermission("namespaces.object.move.discussion")): ?>
		<p><a href="<?php echo Gene::makeLink($object) ?>/edit/move" id="move"><img src="<?php echo $ui['images'] ?>move.png" alt="" id="moveimage" /><br />Move Discussion</a></p>
	<?php endif; ?>
	
	</div>
	</div>
<?php endif; ?>